<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>新建任务</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="<%=basePath %>admin/lib/layui-v2.5.5/css/layui.css" media="all" />
    <link rel="stylesheet" href="<%=basePath %>admin/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form layui-form-pane" action="Javascript:void(0)">
<h2>新建任务</h2>
    <div class="layui-form-item">
        <label class="layui-form-label"><span style="color: red">*</span>任务标题：</label>
        <div class="layui-input-block">
            <input type="text" id="taskTitle" lay-verify="required" placeholder="选择时间" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span style="color: red">*</span>开始时间：</label>
        <div class="layui-input-inline">
            <input type="date" name="sDate" lay-verify="required" placeholder="选择日期 " autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span style="color: red">*</span>结束时间：</label>
        <div class="layui-input-inline">
            <input type="date" name="eDate" lay-verify="required" placeholder="选择日期 " autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item" pane="">
        <label class="layui-form-label">重要程度：</label>
        <div class="layui-input-block">
            <input type="radio" name="follow" value="1" title="重要" checked="">
            <input type="radio" name="follow" value="2" title="紧急">
            <input type="radio" name="follow" value="3" title="普通">
            <input type="radio" name="follow" value="4" title="重要且紧急">
        </div>
    </div>
    <div class="layui-form-item" pane="">
        <label class="layui-form-label">关联业务：</label>
    <div class="layui-col-md6">
        <select>
            <option value="customer">客户</option>
            <option value="contactUser">联系人</option>
            <option value="buyChance">商机</option>
            <option value="order">订单</option>
            <option value="backMoney">回款</option>
            <option value="refund">退款</option>
            <option value="cost">费用</option>

        </select>
    </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">任务描述：</label>
        <div class="layui-input-inline">
            <textarea name="remarks" placeholder="请输入备注信息" class="layui-textarea"></textarea>
            <div class="layui-form-mid layui-word-aux">已输入0/300</div>

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><span style="color: red">*</span>选择附件：</label>
        <div class="layui-input-inline">
            <button type="button" class="layui-btn demo-class-accept" lay-options="{accept: 'file'}">
                <i class="layui-icon layui-icon-upload"></i>
                选择附件
            </button><br>
            <p>支持格式：.rar .zip .doc .docx .pdf，单个文件不能超过20MB</p>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label"><span style="color: red">*</span>支持人员：</label>
        <div class="layui-input-inline">
            <input type="text" name="user" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-radius">提交</button>
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-radius">取消</button>
    </div>
</form>
<script type="text/javascript" src="<%=basePath %>admin/lib/layui-v2.5.5/layui.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/lib/jquery-3.4.1/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/pagejs/system/user/addUser.js"></script>
<script>
    $(function() {
        // 字数统计
        $('#followContent').on('input', function() {
            var count = $(this).val().length;
            var maxCount = 300;
            $('.layui-word-aux').text('已输入' + count + '/' + maxCount);
        });
    });

</script>
</body>
</html>
